carousel animation bug fix