add documentation for slicing