improved layer visibility change