Add gallery and pagination