Some changes in gallery partial