Completed sumSlice()