Bug 967089 - [gallery] remove visibility monitor code if it is no longer needed