Changed way to make elements invisible

Not their visibility but their display is set, so that they won't take up any space on the page. Apparently display: none;  only works with id's