resolve carousel problem