make sure we don't add layers that are invisible