convert visibility hidden to display:none in order to remove elements from the dom until needed