set block dimension properly