Improve slices example