Hide gradient if block in view