trying to integrate gallery into this project