Revised list/grid switch based on current window width