clear pending slides when attachment reselected

Fixes #2012

// FREEBIE