refactoring carousel view