I used hot glue to mount it on a bed. It's 150mm long and for the IKEA MALM i needed two of this.
For other lengths just scale it with ypur slicer.