Slicing of matrices