When an event is selected, add a 'selected' class to the timeline container.