don't go crazy 40 gal is total overkill for a pacman.
Alex he may never outgrow your tank, when (if) he is over 4,5" you may want to consider bigger tank.
here is a pic of adult 4"pacman in 12x12x18 tank, he was perfectly fine here.
Name:  DSC02155.jpg
Views: 1931
Size:  125.7 KB