Calculate timeline width before centering