Fixed bug in carousel animation