Slice functionality and tests.