update segmentationLayer