remove double network requests when changing layer visibility