I used the Gamemaker Studio 2 nine-slice feature that automatically nine-slices sprites no matter what size they are. There are also functions out there that calculate how to chop it up if the IDE you're using doesn't have built-in nine-slices (or if you aren't using an IDE at all).