And if you are using photoshop one way to add borders is:
1. Make a new layer and make sure that it is the top of the other layers.
2. Select all (ctrl + a).
3. Edit -> Stroke, 1px, color black.
There is of course other ways to do that but imo that is the easiest.