Snails on the large group referred to as Pulmonates are indeed hermaphroditic, having both genders in each snail.
Snails on the large group referred to as Prosobranchs, are not hermaphroditic, but exhibit separate sexes (i.e., separate male and female snails).
What you are observing does indeed look like mating.
As
duanes
said, Apple snails, genus Pomacea (what you have) lay eggs as a single pink to tan colored mass (many eggs attached in a clump), above the water line (on the glass, on plants, etc.). They CANNOT develop in the water, and usually are not laid there. The egg mass requires to dry-out (external surface), and they take 1-3 weeks to hatch.
For these reasons, with apple snails in an aquarium, it is rare to impossible to get them to reproduce out of control, which is unlike the case with most other snails, which lay egg masses in the water (the majority), or the few that give birth to live babies (viviparous), such as Malaysian Trumpet snails and TRUE, and a few others such as mystery snails (genus Viviparus).