Inteligent align blocks to other block side