fix galleriffic margin & modify templates