fixed slideshow reset on slide switching