allow setting visiblity of selected layers (fixes #10835)