auto adjust mask pos