changing custom gallery