now it works with images specified as an array of slides in options to slider