Recovery HD left in the middle
I created a bootable usb with unetbootin and Gparted. I booted the mac with the stick. i moved my Recovery HD to the end. Then I rebooted normally, opened up Disk Utility, dragged the end of the main partition to the bottom.