board size fix

* fixed for other board size also
* auto-resize board accord to screen