Preserve visibility on layer option changes