Write also slice number to masks
ROI selection cannot depend on mask files, named irregularly