panel_collect function

Collect a panel, from wide to long