compress two divs into one