Way to make selected for only visible 5 seconds

i’d like to select certain layers amongst many. all are visible. but i only want to right click and make new layer from visible. but only from the selected visible and so i need to hide the rest.
5 seconds gives me time to right click and make new layer from visible
then it can revert to how all layers were