Can i do the snap to side and snap to top at same time

like keep a bar on side with entrys and bar on top with entrys so no matter where you are you can see both left and top names

Yes you can.

Select the top left cell in the “scroll range” (below and to the right of the ranges you want to lock). Select menu View - Freeze - Rows and columns.

https://help.libreoffice.org/6.4/en-US/text/scalc/guide/line_fix.html?DbPAR=CALC#bm_id3154684