Ikea Rigga Garment Rail (Lewes BN7)

I put it together to realise it doesn't fit where I intended. Have taken it apart again but can't get all the pieces back into the box for the life of me! See measurements in screenshot.