Always go DSLR if comparing with p&s . The DSLR will have a huge advantage in image quality against the P510 and you will have more control about what you want to shout and what way you will shoot . The D5100 will work as you like at every situation but P510 won't. Also the photographs of landscapes, portraits, close-ups with the D5100 will be a class apart then similar photos taken with P510. As far as zoom is concerned you can easily crop the picture on your PC and then keep it but it will still be of good quality . Since the sensors are totally different, a cropped pic taken with a DSLR will be better than the full zoomed pic of a p&s .I have D5100 and I do this with a 18-105 mm . Also while you photograph your favourite things, photography will become a hobby, a recreation .
Soon you will have needs of a DSLR . And the Nikon D5100 is an excellent DSLR with wonderful value for money . The D5100 is the number one DSLR on SnapSort's recommended list , beating other pro-level DSLRs . Here is the link - recommend at snapsort.com
Also, most importantly, with a DSLR , you will learn the art of photography .