fixing carousel issue