use GravityCompact instead of Gravity