What is the function of the noun phrase the last slice of pizza in this sentence?

I gave the last slice of pizza to my best friend.

direct object

predicate nominative

appositive

subject