Allow cache to operate on slideshow pages
Remove unneeded global variables
Add transitiontime option to set duration of transitions