Use is visible for is_open instead of position, make sure animation is done before we hide it.