dilate using a subcube