fixing trailing whitespace caused by visibility: hidden in css jquery selectors