resizing p elements as well