When deferring the sentence for the purposes of personality investigations pursuant to Article 132-70-1 of the Criminal Code, the court may also place or maintain the convicted person under judicial supervision pursuant to the first paragraph of Article 397-3 of this code, under house arrest with electronic surveillance pursuant to the first paragraph of article 142-12, or, in the cases provided for in articles 395 to 397-7, in pre-trial detention pursuant to the second paragraph of article 397-3. Pre-trial detention may only be ordered for one of the reasons provided for in 2°, 3°, 5° and 6° of Article 144. Where the person has been taken into custody or kept in custody, the last two paragraphs of article 397-3 shall apply.