using -slice from dash.el instead of our own implementation