fix bug: white space at start and end of slideshow