Handle browser resizing after sliding animation