The slice object needs to be in a list for this to work.