Fixed show/hide to return selected objects, not only those that are shown/hidden