finally made carousel work