Set dynamic sublayer checkboxes based on layer's visible layers instead of default visible layers.