To determine the door width, add at least two inches to the width of the opening or to the outside dimensions of the door trim. Pro tip: Sliding doors ... track mounting DIY barn door hardware.