make each individual division listen to the visible attribute