limit length of upper shadow