fixes issue with image carousel