delete element that no longer visible