Slideshow now working as directive