adding gallery base template