only save previous style.display if different from none