refactor carousel component which is now a Class