move waveform item undo command
fixed bug in move slice point undo command
tidy up code