In ghulāmuhu, ghulāmu is nominative and -hu genitive.

Ism al-Mafʿūl: Formation, Weak Roots and Government