Gallery carousel fix