add responsive layout for timeline