Fixed bug of slideshow not in sync