require and gallery plugin