densemat row col slicing