Get another SDCard and a USB reader. Build a copy of plain Raspbian on the new SDCard, boot that. Put your card with the partitioning problems in the USB reader, plug the USB reader into your RPi.
sudo apt-get install gparted
You can then use sudo gparted to resize/move the partitions on your card (get it down to 3.9GB). Then take a new image of that smaller card.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3
Please post ALL technical questions on the forum. Do not send private messages.