I did a quick one here as a test.
https://casual-cream-6479.glideapp.io/
Template Columns to set increments - Hideit = 1, Unhideit = -1,
Using a column set to 0 as visible, and 1 as hidden. The Hide button disappears when the inline list does, and the Unhide button disappears when the list is visible.