added a swapChildren function to set one child on top of the other