Optimizing slug size