closing </a> tags added to gallery code to fix errors