It is as follows. I have a div, which in my case is the body of the page, tooth of this div I have two borders, right and left, and inside the div I also have a flexbox with some images. It works fine, but when the page size decreases, the flexbox images are over the right border.