Fix data cropping for 3D spike matrix