putting children in the proper div