Do I need to sale/transfer my shares while ending my tenure as director in a company?

No, even after the end of the tenure as director, a person can hold the shares in the company. However, if the shares in the company are subscribed as a condition to appointment as provided by AoA, the shares are also required to be disposed of in the manner provided in AoA.