add thumbnail and caption to gallery listings