save opacity, visible data before removing layer