Remove layer's dom elements for onRemove event.