Clever idea, very clean looking.
I use a 2x6 across like you did, and make simple adjustable divider that holds items to one side, and can be placed anywhere depending on what I cam carrying. To be clear, I saw this idea somewhere, not mine originally, just sharing it here so people see there are many creative ways to tackle bed storage.