fix js compoment carousel issue