add conditional around resize carousel html set to prevent reset of carousel on mobile orientation change