optimizes layout, js, and prepares for new image scroller