move window efficiently