Jumping spider mimics two kinds of ants as it grows

Spiders that pretend to be ants to fool predators have an unusual problem when it comes to sex. How do they get the attention of potential mates without breaking character to birds that want to eat them?