add visibility to layers context