Adding layer visibility processing