Resizing window using M-<up> and M-<down>