generating slicecommand