Show content below slider based on slide [closed]

We use the bricks slider with 4 slides. Below (and outside of the slider) there are 4 containers, one of them is immediately visible together with the first slide.

The request is:

How can I hide the first container and unhide the second content when the user switches to the second slide manually? Same with unhide container #3 together with slide #3, and unhide container #4 together with slide #4?

Obviously a JS function shoould capture the number of the slide, and hide all containers below, plus unhide the adequate container.

Thank you in advance for your ideas.

As requirements and way of doing have changed, an answer here is not needed any longer.

Thank you.