Complex sentence: The animal (s) in between are acting as both males and females, in other words, the animal receiving sperm passes its own sperm to a third sea hare.
Split into simpler sentences: The animal (s) in between are acting as both males and females. The one receiving sperm passes its own sperm to a third sea hare.