Ipad portrait mode

Some small changes in sidebar template to support ipad portrait mode.