Adding mapSlicesInPlace to TensorUtils