check for timeline lenght before trying to display