fix carousel image flicker