Improved alignment of events with time slots