changes layout and slideshow