Gets the max height from a set of element and applies to all the elements in the set