It don't separate the shulkerboxes, but you can separate the shulkerboxes later with a non-stackable itemfilter afterwards. PS both pistons are sticky pistons, don't forget to drop an item in the dispenser (should be a dropper btw) facing upwards in to the hopper.