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
2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+
Any DMs sent on Twitter will be answered next month.