The -ī in ghulāmī is a mudāf ilayh in the genitive position.

Iḍāfah to Yāʾ al-Mutakallim and the Six Nouns