Making the width of the bars dynamic