makes gallery links into buttons