How to add slider on map sensor once on click it should do some action

you can't - the tabs are wired up in Node-RED - Node-RED passes messages to tabs - if you need to send different messages you need to use the message from the click to change your logic on the Node-RED side.