execute callbacks when dom elements appear in and out of view