Improve slideshow functionality