Edited carousel code