Complex sentence: Both sexes of the butterfly tend to inhabit the forest understory, but females are found near the tree tops when it is time to lay eggs.
Split into simpler sentences: Both sexes of this butterfly tend to inhabit the forest understory. Females can be found near the tree tops when it is time to lay eggs.