correcting the function call self.equal_slices