They're hermaphrodites - each snail has male and female reproductive organs.
When snails mate, they fertilise each other - this gives an egg-laying population equal to the number of snails, unlike most other animals where around half the population (the females) lays eggs.