size tag elements widths according to content