fixed a bug in the slideshow script route