If you set up rollup tasks, important tasks are visible when the parent task is collapsed.

Enable the rollup property of the task you want to display in the parent’s row in the timeline.
See Properties of task for details.

If you disable the rollup feature, rolled-up tasks disappear from the chart.