small change to slideshow()