split html into blocks method