Stop slideshow from continuing after closed