fix slideshow
remove unneeded code