Toggle visibility instead of display to preserve detection of element
heights