Changes to slicing to allow Cristina to deal with data bigger than memory.