basic auto resize for narrow window