Removed redundant as_slice in example.