Banana cake fallen

Made a banana and rasperry cake/bread and when taken out of oven looked good but once out of the tin the cake fell to half its size. What did I do wrong? It was still a little hot when I removed it from the tin.

Thankyou so much for your input…just learning to work the web site and did not see any previous reply. Thankyou again…