Raise error at slice ndarray interface