Were the snails spiral shaped? If so these would be Malaysian trumpet snails. They burrow in the substrate and roam around at night. Also finding them in the filter is normal. I keep some sponges by my intakes and they gather up a bunch of nasty stuff and I always find tons of snails there eating that brown crap.