ws needed around $gallery