You will need to relocate the pins using a sharp pick tool (gently lift the small plastic tab, then you can extract the individual crimp pins, slide them into the new position until u hear an audible click)
If you do not need the I2C IMU you can obmit those cables, and just connect Black (GND), Blue (TX), Yellow (RX) to the Raspi GPIO header