trying to fix slideshow.js