Building your own H bridges is great to learn about them, but in an application if space is an issue - you're probably better off using an H bridge IC such as the LMD18200 or L298 as these have features such as overcurrent / overtemp protection, seperate enable functions, internal clamp diodes etc.