Direct observation of geometric and sliding ferroelectricity in an amphidynamic crystal