Some 35 troops will join police in patrolling the country's southwest borders, Slovenia's military says.