adds correct divs to a container, removes unnecessary spacer