Fixed bug referencing 'this' causing slideshows not to work