Means for changing the porosity of a filter element