How to stitch tilesets together?

I am using RMXP and I need some advice on how to stitch my tilesets together, I found these the author permits both commercial and non commercial use as long as I give them a free copy of the game (and ofc credit common sense there), the tile sets did not come merged together and I need a way to stitch them to the map will use all the tiles I want on the map together.
This tutorial shows how to do it in Gimp. It uses Ace tiles, but it would be the same for XP, except for the sheet size. I don't remember the size for XP and I'm on my phone at the moment. Maybe someone can clarify that part.

http://rmvxace.wikia.com/wiki/Combining_Tiles_in_Gimp
XP allows 8 columns and an unlimited number of rows. Don't go stupid with it though - the bigger your tileset becomes (*cough* Fused Ultimate Exterior!) the more your game will lag. Only include the tiles you're going to need on THAT map, and create individual tilesets for each map, or each area, rather than trying to have a small number of them for the entire game.
Wait I can add them to a single map without stitching?
You can only have 1 tileset in use for a single map. So, instead of one massive tileset, you can piece together only what you need for a certain map. Ex: Make one tileset full of trees for a "Forest Tileset" and one full of cave stuff for a "Cave Tileset" instead of a mass collection of tiles.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-stitch-tilesets-together.37483/