making slideshow duration work