Hi @Hanumant Soft - Dev ,
There is no OOTB way to achieve this, you need to use development methods. You can refer to the article Add jQueryUI Accordion to your SharePoint client-side web part to see if the method in it meets your needs.
Have a nice day!
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.