Hanging will help you get taller by stretching out your spine and joints. When you wake up in the morning, you are always a little taller than late in the afternoon because your spine has been extended while asleep. As you function throughout the day, gravity compresses it back down. Hanging will help maintain the extended state of the spine so that it compresses less as the day goes by.
There are two main ways to go about hanging. The easiest and most convenient way is to use a chinup bar and dead hang from it. Ideally, you’d want to do 10~15 sets of 15~20 seconds each for at least 30 minutes a week. Twisting from side to side and lateral leg raises will also help, but avoid swinging your body.
The second way is to buy an inversion table, strap your ankles down, and hang upside down. This is more effective than the chinup bar but will be more inconvenient.