made pets hide and show according to current screen