more encapsulation in Slice class