You may also need a new PSU depending on what powersupply the Pavillion has. Never buy an OEM PC like HP or Dell if you intend to upgrade things in the future. They really aren't friendly. Length depends on which card you want.
Just google.
http://www.legitreviews.com/article/1364/2/
8.25" in length.