I got tired of having wooden bed sides rot out, so I built frames using 4" x 4" posts every four feet, with a pressure treated 2 x 6 connecting the posts on the bottom, and a 2 x 4 on the top. I lined the insides of the frame with old roofing tin. So dirt no longer touches the wood, and the rotting out problem is solved. Cheap and easy!