Fix slideshow template in IE 8

See commit messages for details.