Add gallery to sidebar and host parameter to json