This is a simple I designed in OpenScad to fix a broken bed slat I had.
Feel free to tweak the openscad if your bed slats should be a different size.
The author hasn't provided the model origin yet.