Bonucci, as the left CB, is the one who should have been closer to Ibrahimovic on the goal.
Legrottaglie, as the right CB, ought to have been somewhere around the near post area.
Both were drawn to the near post and were several yards out of position, which is why Pepe had to try and challenge Ibrahimovic, but he never really had a chance.