Hello, I would like to be able to control the second slide of the slider by the button on the first slide and vice versa. How is this implemented?

Hello, I would like to be able to control the second slide of the slider by the button on the first slide and vice versa. How is this implemented?