Corrected code to get the slideshow block working.