Fix gap calculations, move it to Packer;

Fix 'auto' size of DOM element