add slideup and down animation in foreach