This could be an option, but often you don't need to select continues layers only, so its not ideal
Unless maybe this gesture could be repeated multiple times, while in select mode. So tap, 2 finger tap, unselected layers in between, tap, 2 finger tap etc.. should also work in reverse for deselecting specific layers.
And then maybe this same gesture but with 3 fingers tap to show/hide layers
But I still think, the option to just glide over the layer thumbnails and eyes would be much easier (for users)