Take your measurement so that one panel will go up against the opposing wall and the other panel will need to be shortened by the 5/8” panel thickness. You may want to add 5/8" to the the end stile width of the panel going up against the opposing wall so that when installed both panel stiles will match.