query only visibles layers in theme