change the overflow of gallery