implement layer masking in anc_view