adjusing carousel to work properly