Gallery: made links more dynamic.
Gallery: corrected docs link.