Added slideshow functionality