fix position of gradient masks