fix spacing problem after HTML shrinking