slice access functions

The slice class has three member functions.