Add class Slice to improve performance of to_s().