added script for carousel