applied Hiltjo's resize/move limitation