Fix layout when the window becomes very narrow