slideshow functionality added