How can I hide the block properties when I collapse the block?
Have you checked Hide Block Properties when Block is collapsed ?