Indexed list prototype with hide/show logic