image overlay spacing

can’t work out JS to get it to auto-centre