fix algorithm for creating sandwich node, a slice of bread was being left out