fixed timer problem in slideshow