When dead-heading it, cut down each stem to about 1/3 of its length, and see if that helps matters. It is possible that it's not a very compact rose, though - impossible to know its nature when you buy it.
Also, give it a feed or rose food to give it a boost, and keep it in a sunny position outdoors.