I've just been through this situation and my ex paid me half of the deposit and we then wrote a letter that we both signed stating the date I would leave the apartment and when it would transfer into his sole name. This was sufficient for our landlord.
Good luck with everything and I hope it all works out for you. It's not easy breaking up but you'll be ok