removing async, slideshow stops working