Extensions could retract or platforms could:
So the train stops, the extensions are extended and locked in position, the doors are released, passengers get off/on, doors are closed, extensions are retracted and locked into place, train sets off.
Can you see a problem with the timetable there?