If you are planning on doing the 40 barrel in the 9mm slide, I would first take .010 off each side of the tang/tab on the 40 barrel, shown in the photo. It should fit, but might be a little tight. There should be a small amount of side to side play. Test the side to side play with the stock 9mm barrel in the 9mm slide and make the 40 barrel have similar play.
Once you get that right the only thing left is the 40 mags. Take it to the range and have at it.
Bob