How to remove space between tracks?

How to remove space between tracks?
An example: when a voice is stopped it should be removed empty space between tracks as an voice is not detected. The whole time should not include time between tracks. Is this possible with one button?

Hi,

Sorry, I’m not sure I do understand your request.

Could you please add a screenshot before, after and expected?

Hey.

Is that what you are looking for?