Tidy up the shuffle function. Slices are already pointers.