refactored index page carousel