clear pending slides when attachment reselected

This is just a quick fix for #2012, ignoring that AttachmentManager and SlideDeck need replacement