drop every nth and take every nth