Fixed bug in slices.