code clean
added splitVertical and splitHorizontal methods