The prepositional phrase is "on the warm rug", which modifies the verb "slept" and tells us where the cat slept.