Now the main image move left and right when the window is resized