Slugs are hermaphrodites, they can fertilise their own eggs... so this is quite rare. Some mate once in their lifetime, some never mate at all.
I’d only ever seen this watching a @Sir_Attenboroug documentary on the telly years ago. I just can’t get over it. It was so incredible to see for myself.