prevent reinitialization if the width does not change

mobile scroll event triggers resize, which in turn was reinitializing the carousel, causing a flash and a stutter.