Avoid including the slideshow code on pages which do not use it

The less HTTP requests, the better :)