This issue appears when using analog video signal in which sync signals don't match video signal accurately. The image is shifted horizontally and/or vertically. If left side is cut off, like in your case, a black margin will appear on the right side.
This problem can be mitigated by adjusting screen position in monitor's menu. I can't post exact instructions because menus differ between monitor manufacturers and models, but it shouldn't be hard to find.
Please note that VGA signal will be noisy when used with modern high-resolution monitors, it's just not suitable. Consider switching to a digital connection (HDMI, DisplayPort or DVI-D) if possible.