change gallery model