Improved carousel code for webs gallery