Re-importing wipes out the shelves/collections of any sideloaded books -- only Kobo Store ones sync to server. But you can use Calibre + KoboTouchExtended (I think also basic KoboTouch) to set a tag-like column for shelves/collections and that will update it when you connect.