workaround for moving outside layer bounds