add end of slice

add end of slice