You will have to use a watchdog timer to put the ATmega to sleep.
It can only sleep for 8 seconds when you're using a timer to wake it again. You can of course put it straight back to bed for another 8 seconds and another 8 and another 8 until you've reached your 5 minutes.
Recommended reading on sleep modes is this excellent summary by Nick Gammon: