fix slate window movement