Fixed small bug on slideshow generation