Just get the threshold from that particular slice, or however you do it. Then just create a binary 3D volumetric logical image by thresholding your entire image (the badly-named I):
binaryImage = I > threshold;
To find out if some pixels coincide for two slices, you can AND the slices
inBothSlices = I(:,:,slice1Index) & I(:,:,slice2Index);
