Method and apparatus for making a filter element