Improved table behaviour when the window is not wide enough