Fixed a bug

Wrong list slicing syntax.
Thanks to Angus Roberts (University of Sheffield).