My extra section of the board wasn't long enough. I wanted the shelf to be slatted anyway, so considering this glueup. Would use Dominos and glue.

Or maybe use smaller section in the middle