fix photo gallery , add loading effect and preload next two photos