hiding elements with display:none when not available