Modified __getitem__ method in Tokens to support slices