fixed reading of 2D data slices