For making thok barriers, all you do is make a giant square around the map, then set the ceiling and floor heights to the same value.
Although, if you're making a large map, a square isn't the way to go. You'll just want to make a sector that surrounds the outer edges of the map.