Extra white spacing when scrolling horizontally

I am trying to horizontally scroll two frames inside a parent frame. While the scroll is working fine, there is an issue of extra white space occurring at the start and the end of the scroll.

I am not able to get this issue fixed for some time now and seeking help for the same. Attached are the screenshots of the screen.