add vertical resize on window switch