hide container when container is not visible