Changes to make slideshow work