Implemented function set slice.