Fixed some bugs with slide deletion.