hide DOM elements when hiding blocks