This is usually down to either under-baking or cutting them while they're still warm. You can score them while they're still warm in the tin but don't try to remove them until they're completely cool. Another reason for flapjacks falling apart is not pressing them into the tin firmly enough before baking.