[minify codes]How do I group function?

Hello! everyone.
I created more than one text and make it button, click its can show gallery.
but make more text_ click function , i feel too trouble, how do I minify JS code?

// For full API documentation, including code examples, visit https://wix.to/94BuAAs

var gallery = '#gallery1,#gallery2,#gallery3,#gallery4,#gallery5,#gallery6,#gallery7,#gallery8,#gallery9,#gallery10,#gallery11,#gallery12,#gallery13,#gallery14,#gallery15,#gallery16,#gallery17,#gallery18,#gallery19,#gallery20,#gallery21,#gallery22,#gallery23,#gallery24,#gallery25,#gallery26,#gallery27,#gallery28,#gallery29,#gallery30';

$w.onReady(function () {
    text1_click(event);
});

export function text1_click(event) {
    $w(gallery).hide();
    $w('#gallery1').show();
}
//1965
export function text2_click(event) {
    $w(gallery).hide();
    $w('#gallery2').show();
}
//1981
export function text3_click(event) {
    $w(gallery).hide();
    $w('#gallery3').show();
}
//1985
export function text4_click(event) {
    $w(gallery).hide();
    $w('#gallery4').show();
}
//1986
export function text5_click(event) {
    $w(gallery).hide();
    $w('#gallery5').show();
}
//1987
export function text6_click(event) {
    $w(gallery).hide(); 
    $w('#gallery6').show();
}
//1989
export function text7_click(event) {
    $w(gallery).hide();
    $w('#gallery7').show();
}
//1990
export function text8_click(event) {
    $w(gallery).hide();
    $w('#gallery8').show();
}
//1991
export function text9_click(event) {
    $w(gallery).hide();
    $w('#gallery9').show();
}
//1992
export function text10_click(event) {
    $w(gallery).hide();
    $w('#gallery10').show();
}
//1993
export function text11_click(event) {
    $w(gallery).hide();
    $w('#gallery11').show()
}
//1994
export function text12_click(event) {
    $w(gallery).hide();
    $w('#gallery12').show();
}
//1996
export function text13_click(event) {
    $w(gallery).hide();
    $w('#gallery13').show();
}
//1997
export function text14_click(event) {
    $w(gallery).hide();
    $w('#gallery14').show();
}
//1998
export function text15_click(event) {
    $w(gallery).hide();
    $w('#gallery15').show();
}
//1999
export function text16_click(event) {
    $w(gallery).hide();
    $w('#gallery16').show();
}
//2001
export function text17_click(event) {
    $w(gallery).hide();
    $w('#gallery17').show();
}

//2003
export function text18_click(event) {
    $w(gallery).hide();
    $w('#gallery18').show();    
}
//2005
export function text19_click(event) {
    $w(gallery).hide();
    $w('#gallery19').show();
}
//2007
export function text20_click(event) {
    $w(gallery).hide();
    $w('#gallery20').show();
}
//2009
export function text21_click(event) {
    $w(gallery).hide();
    $w('#gallery21').show();
}
//2010
export function text22_click(event) {
    $w(gallery).hide();
    $w('#gallery22').show();
}
//2011
export function text23_click(event) {
    $w(gallery).hide();
    $w('#gallery23').show();
}
//2012
export function text24_click(event) {
    $w(gallery).hide();
    $w('#gallery24').show();
}
//2013
export function text25_click(event) {
    $w(gallery).hide();
    $w('#gallery25').show();
}
//2014
export function text26_click(event) {
    $w(gallery).hide();
    $w('#gallery26').show();
}
//2015
export function text27_click(event) {
    $w(gallery).hide();
    $w('#gallery27').show();
}
//20163
export function text28_click(event) {
    $w(gallery).hide();
    $w('#gallery28').show();
}
//2017
export function text29_click(event) {
    $w(gallery).hide();
    $w('#gallery29').show();
}
//2018
export function text30_click(event) {
    $w(gallery).hide();
    $w('#gallery30').show();
}