cleanup gallery widget