slice buffer if not full