generate mask overlap for sample across scans in 2mm