multi row hiding logic