return 0 if size can't be parsed
update swipebox