trim mask to lower resolution upper bounds