preventing accordion elements from being trashed