added each_slice method