Working on the slice logic