refactoring carousel for lazy loading