it's possible that they were trying to mate. the male gets "on top" of the female in this process. also, it could be that he was just trying to get a bite to eat. the shell of snails collects algae like the walls of your aquarium, which is not harmful to the snail and can be removed with an unused soft toothbrush for vanity sake. often snails will eat the algae of the backs of other snails. but if you say the big one was shaking and twisting? that sounds like mating to me. my snails did just this, but ive yet to see any eggs

apple snail eggs look like orange, pink or salmon colored clumps and they normally lay their eggs above water. apple snails will lay eggs if they feel safe, and feel as if there is food available to them and their babies. do you feed yours romaine lettuce, cucumbers, string beans? you can

have fun with em, whatever the result