How to get baby to nap longer

They said the long the nap the better they sleep at night. My 5 month old doesn’t nap longer than 30-45 minutes... 2-3 naps a day. The ODD time he naps for over an hour (very rarely).

What can I do??