using ceil instead of floor for the sidebar.