recompute slide stack length when adding/removing slides. closes #651