make a group of html elements have the same height dynamically