Flush commandstack after creating slices or ensembles to prevent undo
actions