added slice3 for volumetric data