added thumbnail helpers and named rel attributes for separate galleries