gallery and set background working