fix container of side window when x is larger than limit