Added slice sparse matrix to dense batch with test.