added slideshow functionality