fix captions and titles in galleries

plus add captions to grid gallery fixes #129