show custom post’s post in two different divs [duplicate]

Just before the while loop starts, have a counter variable like

$counter = 0;

Just before the endwhile, add the following check with counter.

if ( ++$counter == 10 )
{
    $dee_output .= '</div><div class="second-half">';
}

Note: I don’t see correct number of opening and closing div tags, so please check your code.