Widget with scroll up to a limit


Hello, I am building a product page where I have a gallery on the right side and a description text on the left side. Is there any way when I do scroll to see the rest of the description the gallery follows the scroll to a certain point? I attached an example because I would like the gallery to have vertical scroll only in the white space, because below it is still more content on the page and there it can no longer be visible. I already try to pin to browser and have a variable to move the gallery but it´s not working.