Handle title change for different gallery pages.  Wrap media gallery in border.