L293D overheated but not burned !! what's the solution ?

hey guys, because my projecg is around an rc f1 car so I just noticed that I can use the body of the car to cool the chip down, better than leave it like this, I can put it on one of the sidepods, the chip will be in a perpendiculaire line to the ground, the whole circuit of it will be so do you think this will effect anything any function or the position doesnt matter if we're talking electronics ? because physically the chip we'll be getting the maximum air,,, threw the hole of the sidepod