I've added this width function at the wrong place. Removing it.
Set event width as 10% of the available width
Event horizontal position should be relative to its width