Formatting square and rectangle with bootstrap