add thumbnailing to gallery