promised version works for the first time
now it works with images specified as an array of slides in options to slider