checking if the new value of number_slices is different from the current