optimized badge layout