adding caption to gallery