fixed bug that prevented slideshow from stopping